<template>
  <div>
    <router-link to="/home" exact-active-class="active">首页</router-link>
    <router-link to="/classify" exact-active-class="active">分类</router-link>
    <router-link to="/orderForm" exact-active-class="active">订单</router-link>
    <router-link to="/My" exact-active-class="active">我的</router-link>
    <div>
      <h1>显示一级路由切换的页面↓</h1>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
.active {
  color: #f00;
}
a {
  margin-right: 5px;
}
</style>
